﻿<view:ViewPageBase x:Class="ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.Views.LinkedText"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                   xmlns:view="clr-namespace:ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.Views"
                   xmlns:viewmodel="clr-namespace:ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.ViewModels"
                   xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
                   xmlns:Behaviors="clr-namespace:ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.Behaviors"
                   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                   xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
                   xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.SL4"
                   xmlns:Command="clr-namespace:ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.Command"
                   mc:Ignorable="d"
                   xmlns:web="clr-namespace:ASPItalia.ModelVirtualCasting.Web.RiaServices"
                   xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                   xmlns:ext="clr-namespace:ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.MarkupExtensions"
                   xmlns:nav="clr-namespace:ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.Navigation"
                   nav:Navigator.Source="{Binding}"
                   d:DesignWidth="640"
                   d:DesignHeight="480"
                   Title="CustomTypePage Page">
    <Grid x:Name="LayoutRoot"
          Margin="40"
          Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <RichTextBox x:Name="rtb1"
                     OverflowContentTarget="{Binding ElementName=rtb2}"
                     VerticalScrollBarVisibility="Disabled"
                     HorizontalScrollBarVisibility="Disabled">
            <Paragraph>
                <Run Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse odio mi, rhoncus tempus porttitor ac, lacinia vel mi. Maecenas at dui magna, eget elementum mi. Duis fringilla odio eu lorem imperdiet ut fermentum massa tincidunt. Quisque auctor nisl elit, at tristique eros. Ut purus nibh, lobortis sed facilisis sagittis, pretium vitae quam. Phasellus eu eros sed libero vehicula facilisis. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur sollicitudin turpis ligula. Etiam ipsum metus, venenatis et hendrerit ut, sodales aliquam nunc. Nullam pharetra, odio vitae auctor eleifend, lorem tortor feugiat justo, non placerat lectus felis sed lectus. Nullam nunc sem, condimentum ut varius aliquet, ultricies nec est. Integer accumsan nisi quam. Integer eros purus, sodales quis ultricies semper, suscipit ut sapien. Nunc tempor dapibus egestas. Maecenas enim felis, semper quis auctor et, varius vel ipsum. Donec nec ullamcorper leo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras ornare, lorem sed semper consequat, orci massa commodo tellus, ut porttitor mauris ipsum ut nibh. Morbi dictum, ligula et ultricies dapibus, leo risus viverra nisl, eget luctus enim lorem in dolor. Vestibulum lacinia adipiscing sodales. Fusce vulputate posuere ultricies. Proin gravida ullamcorper nisl. Quisque et risus eu neque molestie laoreet. Cras nec risus ipsum. Suspendisse laoreet hendrerit felis, sed rhoncus lectus lobortis ut. Proin congue, ante id fermentum auctor, justo tellus gravida justo, ut eleifend nibh turpis at ipsum. Aliquam vel augue sit amet metus tempus euismod et ut erat. Praesent vulputate porta turpis placerat pellentesque." />
            </Paragraph>
        </RichTextBox>
        
        <RichTextBoxOverflow x:Name="rtb2"
                             Grid.Column="1"
                             OverflowContentTarget="{Binding ElementName=rtb3}"
                             VerticalScrollBarVisibility="Disabled"
                             HorizontalScrollBarVisibility="Disabled" />
        
        <RichTextBoxOverflow x:Name="rtb3"
                             Grid.Column="2" />

    </Grid>
</view:ViewPageBase>
